package org.chen.payment.dto;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class PaymentCallbackRequest {
    
    @NotNull(message = "商户ID不能为空")
    private Integer pid;
    
    @NotBlank(message = "易支付订单号不能为空")
    private String tradeNo;
    
    @NotBlank(message = "商户订单号不能为空")
    private String outTradeNo;
    
    @NotBlank(message = "支付方式不能为空")
    private String type;
    
    @NotBlank(message = "商品名称不能为空")
    private String name;
    
    @NotBlank(message = "商品金额不能为空")
    private String money;
    
    @NotBlank(message = "支付状态不能为空")
    private String tradeStatus;
    
    private String param; // 业务扩展参数，可为空
    
    @NotBlank(message = "签名不能为空")
    private String sign;
    
    private String signType = "MD5"; // 默认MD5
}